/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import ColorUI from '@ckeditor/ckeditor5-font/src/ui/colorui'
import { TABLE_CELL_BACKGROUND_COLOR } from './utils'
import tableCellBackgroundColorIcon from './theme/icons/table-cell-background-color.svg'

export default class TableCellBackgroundColorUI extends ColorUI {
  constructor(editor) {
    const { t } = editor.locale

    super(editor, {
      commandName: TABLE_CELL_BACKGROUND_COLOR,
      componentName: TABLE_CELL_BACKGROUND_COLOR,
      icon: tableCellBackgroundColorIcon,
      dropdownLabel: t('Table Cell Background Color')
    })
  }

  static get pluginName() {
    return 'TableCellBackgroundColorUI'
  }
}
